const express = require(`express`)
const router = express.Router()
const user = require('../model/User')
const Advertisement = require('../model/Advertisement')
//封装
const ADDROUTER = require('../utils/autoCURD')
//三个参数 挂载路由 ， 表名 ， 表Model
ADDROUTER(router, 'user', user)
ADDROUTER(router, 'Advertisement', Advertisement)

module.exports = router
